﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest_Purchase";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	Business.Platform.Dictionary BDictionary = new Business.Platform.Dictionary();
	Business.Platform.WorkFlow BWorkFlow = new Business.Platform.WorkFlow();
	Business.Platform.WorkFlowTask BWorkFlowTask = new Business.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest_Purchase.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest_Purchase" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(function (){
		formrun.initData(initData, "TempTest_Purchase", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p><br/></p><p style="text-align: center;"><span style="font-size: 20px;"><strong>物资采购申请</strong></span><br/></p><table class="flowformtable" cellpadding="0" cellspacing="1" data-sort="sortDisabled"><tbody><tr class="firstRow"><td width="102" valign="top" style="word-break: break-all;">申请人：<br/></td><td width="434" valign="top" style="word-break: break-all;"><input type="text" type1="flow_org" id="TempTest_Purchase.UserID" name="TempTest_Purchase.UserID" value="u_@Business.Platform.Users.CurrentUserID.ToString()" more="0" isflow="1" class="mymember" title="" dept="0" station="0" user="1" workgroup="0" unit="0" rootid=""/> </td><td width="97" valign="top" style="word-break: break-all;">部门：</td><td width="439" valign="top"><input type="text" type1="flow_org" id="TempTest_Purchase.UserDept" name="TempTest_Purchase.UserDept" value="@(Business.Platform.Users.CurrentDeptID)" more="0" isflow="1" class="mymember" title="" dept="1" station="0" user="0" workgroup="0" unit="0" rootid=""/></td></tr><tr><td width="102" valign="top" style="word-break: break-all;">申请日期：<br/></td><td width="434" valign="top" style="word-break: break-all;"><input type="text" type1="flow_datetime" id="TempTest_Purchase.SqDateTime" name="TempTest_Purchase.SqDateTime" value="@(Utility.DateTimeNew.ShortDate)" defaultvalue="@(Utility.DateTimeNew.ShortDate)" istime="0" daybefor="0" dayafter="1" currentmonth="0" isflow="1" class="mycalendar" title=""/> <input type="hidden" id="TempTest_Purchase.Title" name="TempTest_Purchase.Title" type1="flow_hidden" value="@(Business.Platform.Users.CurrentDeptName)@(Business.Platform.Users.CurrentUserName)的物资采购申请"/></td><td width="97" valign="top" style="word-break: break-all;">备注：</td><td width="439" valign="top"><input type="text" id="TempTest_Purchase.Note" type1="flow_text" name="TempTest_Purchase.Note" value="" style="width:80%" valuetype="0" isflow="1" class="mytext" title=""/></td></tr><tr><td valign="top" colspan="4" rowspan="1" style="word-break: break-all;">申请明细：<br/></td></tr><tr><td valign="top" colspan="4"><table class="flowformsubtable" style="width:99%;margin:0 auto;" cellpadding="0" cellspacing="1" issubflowtable="1" id="subtable_TempTest_PurchaseList_ID_ID_PurchaseID"><thead><tr><td>物资名称<input type="hidden" name="flowsubtable_id" value="TempTest_PurchaseList_ID_ID_PurchaseID"/><input type="hidden" name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtable" value="TempTest_PurchaseList"/><input type="hidden" name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_primarytablefiled" value="ID"/><input type="hidden" name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtableprimarykey" value="ID"/><input type="hidden" name="flowsubtable_TempTest_PurchaseList_ID_ID_PurchaseID_secondtablerelationfield" value="PurchaseID"/></td><td>型号</td><td>单位</td><td>数量</td><td>预计金额</td><td>拟购日期</td><td>类型</td><td>备注</td><td></td></tr></thead><tbody><tr type1="listtr"><td colname="TempTest_PurchaseList_Name" iscount="0"><input type="hidden" name="hidden_guid_TempTest_PurchaseList_ID_ID_PurchaseID" value="b18a9f1f6656007bf39fbb0de8562415"/><input type="hidden" name="flowsubid" value="TempTest_PurchaseList_ID_ID_PurchaseID"/><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Name" colname="TempTest_PurchaseList_Name" style="width:100px" value="" valuetype="0"/></td><td colname="TempTest_PurchaseList_Model" iscount="0"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Model" colname="TempTest_PurchaseList_Model" style="width:100px" value="" valuetype="0"/></td><td colname="TempTest_PurchaseList_Unit" iscount="0"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Unit" colname="TempTest_PurchaseList_Unit" style="width:100px" value="" valuetype="0"/></td><td colname="TempTest_PurchaseList_Quantity" iscount="0"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Quantity" colname="TempTest_PurchaseList_Quantity" style="width:100px" value="" valuetype="1"/></td><td colname="TempTest_PurchaseList_Sum1" iscount="1"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Sum1" colname="TempTest_PurchaseList_Sum1" style="width:100px" value="" iscount="1" onblur="formrun.subtableCount('TempTest_PurchaseList_ID_ID_PurchaseID','TempTest_PurchaseList_Sum1','countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1');" valuetype="4"/></td><td colname="TempTest_PurchaseList_Date" iscount="0"><input type="text" class="mycalendar" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Date" issubflow="1" type1="subflow_datetime" value="" colname="TempTest_PurchaseList_Date" style="width:80px"/></td><td colname="TempTest_PurchaseList_Type" iscount="0"><select class="myselect" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Type" issubflow="1" type1="subflow_select" colname="TempTest_PurchaseList_Type" style="width:100px"><option value=""></option><option value="办公用品">办公用品</option><option value="仪器设备">仪器设备</option></select></td><td colname="TempTest_PurchaseList_Note" iscount="0"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="TempTest_PurchaseList_ID_ID_PurchaseID_b18a9f1f6656007bf39fbb0de8562415_TempTest_PurchaseList_Note" colname="TempTest_PurchaseList_Note" style="width:100px" value="" valuetype="0"/></td><td><input type="button" class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);"/><input type="button" class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);"/></td></tr><tr type1="counttr"><td colspan="11" align="right" style="padding-right:20px; text-align:right;"><span style="margin-right:10px;">预计金额合计：<label id="countspan_TempTest_PurchaseList_ID_ID_PurchaseID_TempTest_PurchaseList_Sum1">0</label></span></td></tr></tbody></table></td></tr></tbody></table><p><br/></p>